home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!usenet
- From: qp7@teleport.com (QP7)
- Newsgroups: comp.lang.c++
- Subject: Re: Overload
- Date: Thu, 21 Mar 1996 01:24:34 GMT
- Organization: SHATTERED PERSPECTIVES
- Message-ID: <4iqb2o$k11@nadine.teleport.com>
- References: <4iju56$m68@tic.sm.dsi.unimi.it>
- NNTP-Posting-Host: ip-pdx03-26.teleport.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- moreld@dsi.unimi.it (~ZIO BUDDA~) wrote:
-
- >Hi, this is my question :
-
- >i have thi class :
-
- >class Foo {
- > char *a;
- > String b;
-
- > public:
- > char *GET();
- > String GET();
- >};
-
- >why this overload is not poxible????
- >I don't want two function with 2 name, i want 2 function with the same name.
-
- The two GET() functions are ambiguous to the compiler unless the
- argument lists are different. Just making the return types different
- isn't enough --- you've got to have different argument types.
-
- - QP7 -
-
-
-